import BaseCURDApi from '@/framework/infra/base/BaseCURDApi'

class PropertyApi extends BaseCURDApi {
  constructor() {
    super('property')
  }

  selfPropertyValue(propertyId, value) {
    return this.post('/self-property/value', {propertyId, value})
  }

  commonSaleProps() {
    return this.get('/sale-props/common')
  }
}

export const propertyApi = new PropertyApi()
